/** When your routing table is too long, you can split it into small modules**/

const Layout = () => import('@/layout/index.vue');

const sysNoticeRouter = {
  path: '/systemNotice',
  component: Layout,
  name: 'systemNotice',
  meta: {
    title: '系統消息',
    icon: 'chart'
  },
  children: [
    {
      path: 'noticeIndex',
      component: () => import('@/views/systemNotice/index.vue'),
      name: 'noticeIndex',
      meta: { title: '列表', noCache: true }
    },
    {
      path: 'addNotice',
      component: () => import('@/views/systemNotice/addNotice.vue'),
      name: 'addNotice',
      meta: { title: '新增系统消息' }
    },
    {
      path: 'edit',
      component: () => import('@/views/systemNotice/edit.vue'),
      name: 'edit',
      meta: { title: '編輯', noCache: true }
    }
  ]
};

export default sysNoticeRouter;
